package com.hgd.client.chart;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for taskKind complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="taskKind">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="oid" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="tasks" type="{http://impl.hgd.com/}task" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="tkId" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="tkName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "taskKind", propOrder = { "oid", "tasks", "tkId", "tkName" })
public class TaskKind {

	protected String oid;
	@XmlElement(nillable = true)
	protected List<Task> tasks;
	protected int tkId;
	protected String tkName;

	/**
	 * Gets the value of the oid property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getOid() {
		return oid;
	}

	/**
	 * Sets the value of the oid property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setOid(String value) {
		this.oid = value;
	}

	/**
	 * Gets the value of the tasks property.
	 * 
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the tasks property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getTasks().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link Task }
	 * 
	 * 
	 */
	public List<Task> getTasks() {
		if (tasks == null) {
			tasks = new ArrayList<Task>();
		}
		return this.tasks;
	}

	/**
	 * Gets the value of the tkId property.
	 * 
	 */
	public int getTkId() {
		return tkId;
	}

	/**
	 * Sets the value of the tkId property.
	 * 
	 */
	public void setTkId(int value) {
		this.tkId = value;
	}

	/**
	 * Gets the value of the tkName property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getTkName() {
		return tkName;
	}

	/**
	 * Sets the value of the tkName property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setTkName(String value) {
		this.tkName = value;
	}

}
